-
Notifications
You must be signed in to change notification settings - Fork 5k
docs: Fix Python connector tutorial environment setup documentation #72534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
docs: Fix Python connector tutorial environment setup documentation #72534
Conversation
- Remove duplicate git clone instructions - Add proper prerequisites section with required tools - Provide complete pyproject.toml configuration with entry points - Add step-by-step instructions for creating source module files - Include proper __init__.py, source.py, run.py, main.py, and spec.yaml - Add test configuration files (secrets/config.json, configured_catalog.json) - Update verification steps to use spec and check commands - Add project structure overview - Ensure consistent connector naming (source-survey-monkey-demo) - Fix Vale spelling error (gitignored -> excluded from Git) Co-Authored-By: [email protected] <[email protected]>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
| ``` | ||
|
|
||
| :::caution | ||
| The `secrets/` directory is excluded from Git by default. Never commit your API credentials to version control. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this true about Git?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is accurate. The root .gitignore file contains:
# Secrets
secrets
!airbyte-integrations/connector-templates/**/secrets
This excludes all secrets/ directories from Git tracking (except for connector templates which need placeholder secrets for scaffolding).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh. This is based on the airbyte project's gitignore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is based on the Airbyte monorepo's root .gitignore. Since this tutorial is specifically about developing connectors within the Airbyte repository, the secrets/ directory will be automatically excluded.
Should I clarify this in the documentation to make it more explicit that this applies when working within the Airbyte repository?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably. It confused me for a moment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated the documentation to clarify this. The text now reads: "The Airbyte repository's .gitignore excludes the secrets/ directory by default."
What
Fixes the environment setup documentation for the custom Python connector tutorial, which had numerous issues making it impossible to follow successfully.
Issues fixed:
source-exchange-rates-tutorialin some places,source-survey-monkey-demoin others)Requested by @ian-at-airbyte
How
Complete rewrite of the documentation to provide step-by-step instructions that:
__init__.py,source.py,run.py,main.py)specandcheckcommandsUpdates since last revision
title="filename.extension"attributes to all code blocks for improved claritysecrets/directory exclusion is from the Airbyte repository's.gitignore(per reviewer feedback)Review guide
docs/platform/connector-development/tutorials/custom-python-connector/1-environment-setup.md- Single file change, complete rewriteKey areas to verify:
User Impact
Users following the Python connector tutorial will now be able to complete the environment setup successfully and have a working connector skeleton ready for the next tutorial section.
Can this PR be safely reverted and rolled back?
Link to Devin run: https://app.devin.ai/sessions/afe4af8e6513476b942a627e7e3d9f9e